exception n. 1.例外;除外,除去。 2.【法律】抗告;異議,不服,反對(duì)。 Every rule has its exceptions. 任何規(guī)則均有例外。 by way of exception 作為例外。 liable [subject] to exception 容易遭到反對(duì)的,會(huì)引起異議的。 make an exception of 把…作為例外。 make no exceptions 一視同仁,一樣看待。 take exception 1. 反對(duì),表示異議。 2. 有反感。 take exception at 發(fā)怒,生氣。 take exception to [against] 對(duì)…提出異議。 without exception 一概,全都;無(wú)例外地。 with the exception of 除…外。 adv. -ally ,-less adj. 無(wú)例外的。
The implementation of exception chaining in jdks 1 . 4 and later mitigates this problem somewhat (在jdk 1 . 4以及后來(lái)的版本中,異常鏈的實(shí)現(xiàn)在某種程度上緩解了該問(wèn)題。
Exception when it cannot find a resource generally using exception chaining to preserve the underlying cause , rather than the lower - level 異常(通常使用異常鏈來(lái)保存隱含的原因) ,而不是更底層的
Another variation on this lesson would be to log the original exceptions for an older framework like struts that didn t use exception chaining , so you can see the underlying causes of failures 本課程的另一個(gè)變體是記錄不使用異常鏈的舊框架(比如struts )的原始異常,這樣就可以查看失敗的底層原因。
Exception chaining can be used to throw a more appropriate exception without throwing away the details such as the stack trace of the underlying failure , allowing abstract layers to insulate the layers above them from the details of the layers below them while preserving information that might be useful for debugging 異常鏈可以用于拋出一個(gè)更為合適的異常而不用丟棄關(guān)于底層失敗的細(xì)節(jié)(例如棧跟蹤) ,允許抽象層將位于它們之上的分層同位于它們之下的分層的細(xì)節(jié)隔離開來(lái),同時(shí)保留對(duì)于調(diào)試可能有用的信息。
百科解釋
Exception chaining, or exception wrapping, is an object-oriented programming technique of handling exceptions by re-throwing a caught exception after wrapping it inside a new exception. The original exception is saved as a property (such as cause) of the new exception.